package org.jeecg.modules.fund.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("fund_library")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FundLibrary {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
    private String id;
    private String type;
    private String subType;
    private String code;
    private String name;
    private String engPreName;
    private String engAllName;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date buildDate;
    private String risk;
    private String manager;
    private String managerCompany;
    private BigDecimal lastVal;
    private BigDecimal nowVal;
    private Date valDate;
    private BigDecimal nowRate;
    private Date estimateValDate;
    private BigDecimal estimateVal;
    private BigDecimal estimateRate;
    private BigDecimal defaultAddVal;
    private BigDecimal defaultReduceVal;
    private BigDecimal defaultSafeVal;
    private BigDecimal defaultDangerVal;
    private Integer addCount;
    private Date addCountDate;
    @TableField(value = "syl_1n")
    private BigDecimal syl1n;
    @TableField(value = "syl_6y")
    private BigDecimal syl6y;
    @TableField(value = "syl_3y")
    private BigDecimal syl3y;
    @TableField(value = "syl_1y")
    private BigDecimal syl1y;
    private Date updateTime;
    @TableField(value = "last_line_60")
    private BigDecimal lastLine60;

    @TableField(exist = false)
    private String userId;
    // 用于APP端根据涨幅排序
    @TableField(exist = false)
    private String orderRate;
    // 用于app端根据提示信息排序
    @TableField(exist = false)
    private String orderTip;
    // 用于持有数据分组使用
    @TableField(exist = false)
    private String groupId;
}
